﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using FwProject.AppVsrsion.Dto;
using FwProject.Car.Dto;
using FwProject.Core.AppVersion;
using Microsoft.AspNetCore.Mvc;

namespace FwProject.AppVersion
{
    public interface IAppVersionAppService: IApplicationService
    {
        /// <summary>
        /// 添加一个App版本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Guid> Create(AppVersionInputDto input);

        /// <summary>
        /// 修改App版本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task EditAppVersion(Guid id, AppVersionInputDto input);

        /// <summary>
        /// 获取一个App版本
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpGet]
        Task<AppVersionDto> GetByIdAsync(Guid id);
       
        [HttpGet]
        Task<AppVersionDto> GetAppVersionAsync();

        /// <summary>
        /// 获取App版本列表
        /// </summary>
        /// <param name="pageIdx"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        [HttpGet]
        Task<X.PagedList.IPagedList<AppVersionDto>> GetPagedListAsync(int pageIdx, int pageSize);

    }
}
